﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BbsbWebService.Classes;
using BbsbWebService.Repositories;
using BbsbWebService.Enums;
using System.ServiceModel;
using System.Windows;

namespace BbsbWebService.Service.Callback
{
    public class BbsbUpdateCallback : BbsbUpdateServiceCallback
    {
        #region IBbsbUpdateCallback Members

        public void StateUpdated(Guid id, PowerState state)
        {
            Enums.PowerState newState = (BbsbWebService.Enums.PowerState)((int)state);
            RepositoryInstances.ItemRepository.UpdateState(id, newState);
        }

        #endregion
    }
}
